package books.to.africa

@TestFor(BookRequest)

class BookRequestTests {

    void testBookRequest() {

		def tr = new TeacherRegister(firstName:"Firstname", lastName:"Lastname", street:"51 street ave.", town:"Portland",
			region:"Maine", country:"United States", schoolName:"USM", gradeLevel:"K")
        BookRequest br = new BookRequest(teacher: tr)
	   
	   
	    assertEquals "Firstname", br.teacher.firstName
		assertEquals "Lastname", br.teacher.lastName
		assertEquals "51 street ave.", br.teacher.street
		assertEquals "Portland", br.teacher.town
		assertEquals "Maine", br.teacher.region
		assertEquals "United States", br.teacher.country
		assertEquals "USM", br.teacher.schoolName
		assertEquals "K", br.teacher.gradeLevel
    }
}
